# eric7.Plugins.VcsPlugins.vcsGit.GitRevisionsSelectionDialog

Module implementing a dialog to enter the revisions for the git diff command.

### Global Attributes

None

### Classes

GitRevisionsSelectionDialog | Class implementing a dialog to enter the revisions for the git diff command.

### Functions

None

## GitRevisionsSelectionDialog

Class implementing a dialog to enter the revisions for the git diff command.

### Derived from

QDialog, Ui_GitRevisionsSelectionDialog

### Class Attributes

None

### Class Methods

None

### Methods

GitRevisionsSelectionDialog | Constructor
__getRevision | Private method to generate the revision.
__updateOK | Private slot to update the OK button.
getRevisions | Public method to get the revisions.
on_branch1Button_toggled | Private slot to handle changes of the Branch1 select button.
on_branch1Combo_editTextChanged | Private slot to handle changes of the Branch1 combo.
on_branch2Button_toggled | Private slot to handle changes of the Branch2 select button.
on_branch2Combo_editTextChanged | Private slot to handle changes of the Branch2 combo.
on_rev1Button_toggled | Private slot to handle changes of the rev1 select button.
on_rev1Edit_textChanged | Private slot to handle changes of the rev1 edit.
on_rev2Button_toggled | Private slot to handle changes of the rev2 select button.
on_rev2Edit_textChanged | Private slot to handle changes of the rev2 edit.
on_tag1Button_toggled | Private slot to handle changes of the Tag1 select button.
on_tag1Combo_editTextChanged | Private slot to handle changes of the Tag1 combo.
on_tag2Button_toggled | Private slot to handle changes of the Tag2 select button.
on_tag2Combo_editTextChanged | Private slot to handle changes of the Tag2 combo.

### Static Methods

None

#### GitRevisionsSelectionDialog (Constructor)

GitRevisionsSelectionDialog(tagsList, branchesList, parent=None)

Constructor

tagsList (list of str)
  list of tags
branchesList (list of str)
  list of branches
parent (QWidget)
  parent widget of the dialog

#### GitRevisionsSelectionDialog.__getRevision

__getRevision(no)

Private method to generate the revision.

no (int)
  revision number to generate (1 or 2)

Return:
  revision

Return Type:
  str

#### GitRevisionsSelectionDialog.__updateOK

__updateOK()

Private slot to update the OK button.

#### GitRevisionsSelectionDialog.getRevisions

getRevisions()

Public method to get the revisions.

Return:
  list of two revisions

Return Type:
  list of str

#### GitRevisionsSelectionDialog.on_branch1Button_toggled

on_branch1Button_toggled(_checked)

Private slot to handle changes of the Branch1 select button.

_checked (bool)
  state of the button (unused)

#### GitRevisionsSelectionDialog.on_branch1Combo_editTextChanged

on_branch1Combo_editTextChanged(_txt)

Private slot to handle changes of the Branch1 combo.

_txt (str)
  text of the combo (unused)

#### GitRevisionsSelectionDialog.on_branch2Button_toggled

on_branch2Button_toggled(_checked)

Private slot to handle changes of the Branch2 select button.

_checked (bool)
  state of the button (unused)

#### GitRevisionsSelectionDialog.on_branch2Combo_editTextChanged

on_branch2Combo_editTextChanged(_txt)

Private slot to handle changes of the Branch2 combo.

_txt (str)
  text of the combo (unused)

#### GitRevisionsSelectionDialog.on_rev1Button_toggled

on_rev1Button_toggled(_checked)

Private slot to handle changes of the rev1 select button.

_checked (bool)
  state of the button (unused)

#### GitRevisionsSelectionDialog.on_rev1Edit_textChanged

on_rev1Edit_textChanged(_txt)

Private slot to handle changes of the rev1 edit.

_txt (str)
  text of the edit (unused)

#### GitRevisionsSelectionDialog.on_rev2Button_toggled

on_rev2Button_toggled(_checked)

Private slot to handle changes of the rev2 select button.

_checked (bool)
  state of the button (unused)

#### GitRevisionsSelectionDialog.on_rev2Edit_textChanged

on_rev2Edit_textChanged(_txt)

Private slot to handle changes of the rev2 edit.

_txt (str)
  text of the edit (unused)

#### GitRevisionsSelectionDialog.on_tag1Button_toggled

on_tag1Button_toggled(_checked)

Private slot to handle changes of the Tag1 select button.

_checked (bool)
  state of the button (unused)

#### GitRevisionsSelectionDialog.on_tag1Combo_editTextChanged

on_tag1Combo_editTextChanged(_txt)

Private slot to handle changes of the Tag1 combo.

_txt (str)
  text of the combo (unused)

#### GitRevisionsSelectionDialog.on_tag2Button_toggled

on_tag2Button_toggled(_checked)

Private slot to handle changes of the Tag2 select button.

_checked (bool)
  state of the button (unused)

#### GitRevisionsSelectionDialog.on_tag2Combo_editTextChanged

on_tag2Combo_editTextChanged(_txt)

Private slot to handle changes of the Tag2 combo.

_txt (str)
  text of the combo (unused)

Up